package test11To20;

import java.util.Scanner;

public class Test11 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        char[] chars = (num + "").toCharArray();
        for (int i=chars.length-1;i>=0;i--){
            System.out.print(chars[i]);
        }
    }
}
